package com.liao.badminton.vo;

import com.liao.badminton.code.BaseField;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;
import lombok.Data;
import com.liao.badminton.entity.Group;
/**
* @author liaocheng
* @date 2024-10-30
* description:群表
*/
@Data
public class GroupVo  extends BaseField {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "群名字")
    private String groupName;

    private List<Long> delIds;  //批量删除ids

    public static GroupVo invertToVo(Group group){
        GroupVo vo = new GroupVo();
        BaseField.invert(group, vo);
        vo.setId(group.getId());
        vo.setGroupName(group.getGroupName());
        return vo;
    }
}
